package com.eduhzy.ttw.commonsdk.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author xubo
 * @date 2018/7/20 17:17
 */
public class VerifyMessageData implements Parcelable {
    private Long thirdId;       //是	    java.lang.Long	20	第三方ID：type=1时，thirdId=classId
    private Long userId;        //是	    java.lang.Long	20	申请人
    private String realName;    //是	    java.lang.String	20	申请人名称
    private String remark;      //是	    java.lang.String	200	申请备注
    private int status;         //是	    java.lang.Integer	2	状态：0待审核 1审核通过 2审核不通过 -1删除
    private int type;           //是	    java.lang.Integer	2	1：班级申请 2
    private int id;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Long getThirdId() {
        return thirdId;
    }

    public void setThirdId(Long thirdId) {
        this.thirdId = thirdId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public VerifyMessageData() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.thirdId);
        dest.writeValue(this.userId);
        dest.writeString(this.realName);
        dest.writeString(this.remark);
        dest.writeInt(this.status);
        dest.writeInt(this.type);
        dest.writeInt(this.id);
    }

    protected VerifyMessageData(Parcel in) {
        this.thirdId = (Long) in.readValue(Long.class.getClassLoader());
        this.userId = (Long) in.readValue(Long.class.getClassLoader());
        this.realName = in.readString();
        this.remark = in.readString();
        this.status = in.readInt();
        this.type = in.readInt();
        this.id = in.readInt();
    }

    public static final Creator<VerifyMessageData> CREATOR = new Creator<VerifyMessageData>() {
        @Override
        public VerifyMessageData createFromParcel(Parcel source) {
            return new VerifyMessageData(source);
        }

        @Override
        public VerifyMessageData[] newArray(int size) {
            return new VerifyMessageData[size];
        }
    };
}
